
// 二级菜单
// window.onload = function(){

//   var Moveout = document.getElementsByClassName("classify-defult");
//   var content = document.getElementsByClassName("select-listbox");
//   //鼠标移入显示
//   Moveout.onmouseover = function () {
//       content.style.display = "block";
//   }
//   function Moveoutsover() {
//       content.style.display = "block";
//   }

//   //鼠标移出隐藏
//   Moveout.onmouseout = function () {
//       content.style.display = "none";
//   }              
//   function MoveoutSout() {
//       content.style.display = "none";
//   }
// }
window.onload = function(){
  let header = document.getElementsByClassName('select-nodes')
  let content = document.getElementsByClassName("select-listbox")
  for(let i=0;i<header.length;i++){
    header[i].index = i;
    header[i].onmouseover = content[i].onmouseover = function(){
      content[i].style.display = 'block'
    }
    header[i].onmouseout = content[i].onmouseout = function(){
      content[i].style.display = 'none'
    }
  }
}


// 固定导航栏
$(document).ready(function() {
  var navOffset=$(".menu").offset().top;
  $(window).scroll(function(){
      var scrollPos=$(window).scrollTop();
      if(scrollPos >=navOffset){
          $(".menu").addClass("fixed");
          $(".menu").addClass("full");
      }else{
          $(".menu").removeClass("fixed");
          $(".menu").removeClass("full");
      }
  });

});


 




